#ifndef __STU_SHAPE__
#define __STU_SHAPE__
#include "Entity2D.h"

class ENGINE_API Shape : public Entity2D
{
public:
	COL_VERTEX * vertexs;
	unsigned int vertexCount;
	DrawPrimitives primitiveType;

	virtual void setColor(DWORD color)
	{
		for(int i = 0; i<vertexCount ;i++)
		{
			vertexs[i].color = color;
		}
	}

	virtual DWORD getColor() { return vertexs[0].color;}

	Shape() : Entity2D()
	{
		vertexs = NULL;
	}

	virtual void Draw(Renderer* renderer) 
	{
		Entity2D::Draw(renderer);

		renderer->unBindTexture();
		renderer->Draw(vertexs, vertexCount, primitiveType);
	}
	virtual void Update()
	{
		//aca va a pasar algo alguna vez
	}
};

#endif